package cn.edu.dz;

public class TestPerson {
    public static void main(String[] args) {
        //使用无参构造创建一个person对象p1;
        Person p1=new Person();
        //使用全参构造创建一个person对象p2;
        Person p2=new Person("fengjiu ",22,false);
       //为对象p1的属性赋值
        String name = p1.name="domghua";
        int age=p1.age=25;
        boolean sex = p1.sex=true;
        //调用sayHi方法
        p1.sayHi(name,age,sex);
        System.out.println("============================================");
    }
}
